home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 February / EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso / earcd / util4 / bytmrk20.lha / sysspec.h < prev    next >
C/C++ Source or Header  |  1995-11-03  |  2KB  |  113 lines

  1. /********************
  2. **  INCLUDE FILES  **
  3. ********************/
  4.  
  5. /*
  6. ** Standard includes
  7. */
  8. #include <stdlib.h>
  9. #include <stdio.h>
  10. #include <time.h>
  11. #include <string.h>
  12.  
  13. #include "nmglobal.h"
  14.  
  15. #ifdef MAC
  16. #include <malloc.h>
  17. #include <mem.h>
  18. #endif
  19.  
  20.  
  21. /*
  22. ** System-specific includes
  23. */
  24.  
  25. #ifdef DOS16MEM
  26. #include "dos.h"
  27. #endif
  28.  
  29. /* #include "time.h"
  30. #include "io.h"
  31. #include "fcntl.h"
  32. #include "sys\stat.h" */
  33. /* Removed for MSVC++
  34. #include "alloc.h"
  35. */
  36.  
  37. /*
  38. ** MAC Time Manager routines (from Code Warrior)
  39. */
  40. #ifdef MACTIMEMGR
  41. #include <memory.h>
  42. #include <lowmem.h>
  43. #include <Types.h>
  44. #include <Timer.h>
  45. extern struct TMTask myTMTask;
  46. extern long MacHSTdelay,MacHSTohead;
  47. #endif
  48.  
  49. /*
  50. ** Windows 3.1 timer defines
  51. */
  52. #ifdef WIN31TIMER
  53. #include <windows.h>
  54. #include <toolhelp.h>
  55. TIMERINFO win31tinfo;
  56. HANDLE hThlp;
  57. FARPROC lpfn;
  58. #endif
  59.  
  60. /****************************
  61. **   FUNCTION PROTOTYPES   **
  62. ****************************/
  63.  
  64. farvoid *AllocateMemory(unsigned long nbytes,
  65.                 int *errorcode);
  66.  
  67. void FreeMemory(farvoid *mempointer,
  68.                 int *errorcode);
  69.  
  70. void MoveMemory( farvoid *destination,
  71.                 farvoid *source,
  72.                 unsigned long nbytes);
  73.  
  74. #ifdef DOS16MEM
  75. void FarDOSmemmove(farvoid *destination,
  76.                 farvoid *source,
  77.                 unsigned long nbytes);
  78. #endif
  79.  
  80. void ReportError(char *context, int errorcode);
  81.  
  82. void ErrorExit();
  83.  
  84. void CreateFile(char *filename,
  85.                 int *errorcode);
  86.  
  87. int bmOpenFile(char *fname,
  88.                 int *errorcode);
  89.  
  90. void CloseFile(int fhandle,
  91.                 int *errorcode);
  92.  
  93. void readfile(int fhandle,
  94.                 unsigned long offset,
  95.                 unsigned long nbytes,
  96.                 void *buffer,
  97.                 int *errorcode);
  98.  
  99. void writefile(int fhandle,
  100.                 unsigned long offset,
  101.                 unsigned long nbytes,
  102.                 void *buffer,
  103.                 int *errorcode);
  104.  
  105. unsigned long StartStopwatch();
  106.  
  107. unsigned long StopStopwatch(unsigned long startticks);
  108.  
  109. unsigned long TicksToSecs(unsigned long tickamount);
  110.  
  111. double TicksToFracSecs(unsigned long tickamount);
  112.  
  113.